package cn.edu.scau.cmi.zenghaonan.chapter06;

class AAAA{
	double f(double x,double y) {
		return x+y;
	}
	static int g(int n) {
		return n*n;
	}
}

class BBBB extends AAAA{
	double f(double x,double y) {
		double m=super.f(x, y);
		return m+x*y;
	}
	static int g(int n) {
		int m=AAAA.g(n);
		return m+n;
	}
}

public class EE {
	public static void main(String[] args) {
		BBBB b=new BBBB();
		System.out.println(b.f(10.0, 8.0));
		System.out.println(b.g(3));
	}
}
